package com.sx.pipeline.ui.chat.conversation

import android.net.Uri
import android.os.Bundle
import com.sx.mvvmlibs.utils.Logs
import com.sx.pipeline.R
import com.sx.pipeline.app.base.CYDataBindingBaseFragment
import com.sx.pipeline.app.config.IntentKey
import com.sx.pipeline.app.model.CYBaseViewModel
import com.sx.pipeline.databinding.FragChatBinding
import com.sx.pipeline.repos.http.res.ContactUserVo
import io.rong.imkit.RongIM
import io.rong.imkit.conversationlist.ConversationListFragment
import io.rong.imlib.RongIMClient
import io.rong.imlib.model.Conversation


/**
 * @Author: YY
 * @Date: 2022/4/7
 * @Description: 会话列表
 */
class ConversationFragment: CYDataBindingBaseFragment<FragChatBinding, CYBaseViewModel>(R.layout.frag_conversation) {
    companion object {
        fun newInstance(position: Int) =
            ConversationFragment().apply {
                arguments = Bundle().apply {
                    putInt(IntentKey.ID, position)
                }
            }
    }
    override fun initData() {
        var conversationListFragment= ConversationListFragment()
        var manager = childFragmentManager
        var transaction = manager.beginTransaction();
        transaction.replace(R.id.container, conversationListFragment);
        transaction.commit();
    }



}